package com.job.Yangmingyu;

import java.util.Random;
import java.util.Scanner;

/**
 * @author Yangmingyu
 * @version 1.0
 * @since 2022-07-19 08:31:14
 */
public class Zuoye0718 {
    public static void main(String[] args) {
        int[] jiang=new int[7];
        int o=0;
        for (int i=0;i<jiang.length;i++){
            Random ran=new Random();
            jiang[i]=ran.nextInt(33);
        }
        for (int h=1;h<=5;h++){
            int[] ming=new int[7];
            for (int j=0;j<jiang.length;j++){
                Scanner sc=new Scanner(System.in);
                ming[j]=sc.nextInt();
            }
            o=paduan(jiang, ming);
            gold(o);
        }

    }
    public static int paduan(int[] jiang,int[] ming){
        int a=0;
        int o=0;
        for (int k=0;k<=6;k++){
            a=jiang[k];
            for (int l=0;l<=6;l++){
                if (a==ming[l]){
                    o++;
                }
            }
        }
        return o;
    }
    public static void gold(int o){
        switch (o){
            case 1:
                System.out.println("七等奖");
            case 2:
                System.out.println("六等奖");
            case 3:
                System.out.println("五等奖");
            case 4:
                System.out.println("四等奖");
            case 5:
                System.out.println("三等奖");
            case 6:
                System.out.println("二等奖");
            case 7:
                System.out.println("一等奖");
            default:
                System.out.println("未中奖");
        }
    }
}